package cn.edu.zjut.medlinebackend.service;

import cn.edu.zjut.medlinebackend.model.User;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.edu.zjut.medlinebackend.model.MessageRecordDo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
* @author 86182
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2023-11-21 16:01:10
*/
public interface UserService extends IService<User> {

    String checkLoginValidity(User user, HttpServletResponse response);
    boolean checkIsAdmin(HttpServletRequest request);
    boolean creatUser(User user);
    List<User> searchAllUser();
    boolean deleteUserInfo(String username);
    User searchUser(String username);
    boolean updateUser(User user);
    void addUserMessageRecord(MessageRecordDo messageRecordDo);
}
